package com.xuerhua.yxt.reqVo;

import java.util.Date;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

import org.hibernate.validator.constraints.NotBlank;

public class SchoolPropertyInputReqVo {

	    private Integer id;
	   
	    @Null(message ="请不要输入schoolId")
	    private Integer schoolId;

	    @Null(message ="请不要输入operatorId")
	    private Integer operatorId;

	    @Null(message ="请不要输入operatorName")
	    private String operatorName;
	    
	    private Integer goodsNameId;
	    
	    private Integer goodsAttrId;
        
	    @NotBlank(message ="购买时间不为空")
	    private String buyTime;

	    private Date createTime = new Date();

	    private Double totalMoney;
        
	    private String units;
	    
	    private Integer inputId;
       
	    @NotNull(message = "类别Id不为空")
	    private Integer typeId;
	    
	    @NotBlank(message = "类别不为空")
	    private String typeName;

	    @NotBlank(message = "名称不为空")
	    private String goodsName;

	    @NotBlank(message = "属性不为空")
	    private String goodsAttr;

	    @NotNull(message ="number不为空")
	    @Min(value =1,message ="number 大于1")
	    private Integer number = 0;
        
	    @NotNull(message ="price不为空")
	    @Min(value =0,message ="price 大于等于0")
	    private Double price = 0.0;

	    private String describe;
	    
	    private String placeSite;
	    
	    @NotNull(message ="是否是消耗品标识不为空")
	    @Min(value = 0,message ="请输入正确的标识")
	    @Max(value = 1,message ="请输入正确的标识")
	    private Integer cycleUse;
        
	    private Integer outputId;
		public Integer getId() {
			return id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public Integer getSchoolId() {
			return schoolId;
		}

		public void setSchoolId(Integer schoolId) {
			this.schoolId = schoolId;
		}

		public Integer getOperatorId() {
			return operatorId;
		}

		public void setOperatorId(Integer operatorId) {
			this.operatorId = operatorId;
		}

		public String getOperatorName() {
			return operatorName;
		}

		public void setOperatorName(String operatorName) {
			this.operatorName = operatorName;
		}
        
		public String getUnits() {
			return units;
		}

		public void setUnits(String units) {
			this.units = units;
		}

		public String getBuyTime() {
			return buyTime;
		}

		public void setBuyTime(String buyTime) {
			this.buyTime = buyTime;
		}

		public Date getCreateTime() {
			return createTime;
		}

		public void setCreateTime(Date createTime) {
			this.createTime = createTime;
		}

		public Double getTotalMoney() {
			return totalMoney;
		}

		public void setTotalMoney(Double totalMoney) {
			this.totalMoney = totalMoney;
		}

		public Integer getInputId() {
			return inputId;
		}

		public void setInputId(Integer inputId) {
			this.inputId = inputId;
		}

		public Integer getTypeId() {
			return typeId;
		}

		public void setTypeId(Integer typeId) {
			this.typeId = typeId;
		}

		public String getTypeName() {
			return typeName;
		}

		public void setTypeName(String typeName) {
			this.typeName = typeName;
		}

		public String getGoodsName() {
			return goodsName;
		}

		public void setGoodsName(String goodsName) {
			this.goodsName = goodsName;
		}


		public Integer getNumber() {
			return number;
		}

		public void setNumber(Integer number) {
			this.number = number;
		}

		public Double getPrice() {
			return price;
		}

		public void setPrice(Double price) {
			this.price = price;
		}

		public String getDescribe() {
			return describe;
		}

		public void setDescribe(String describe) {
			this.describe = describe;
		}

		public String getPlaceSite() {
			return placeSite;
		}

		public void setPlaceSite(String placeSite) {
			this.placeSite = placeSite;
		}

		public Integer getCycleUse() {
			return cycleUse;
		}

		public void setCycleUse(Integer cycleUse) {
			this.cycleUse = cycleUse;
		}

		public Integer getGoodsNameId() {
			return goodsNameId;
		}

		public void setGoodsNameId(Integer goodsNameId) {
			this.goodsNameId = goodsNameId;
		}

		public Integer getGoodsAttrId() {
			return goodsAttrId;
		}

		public void setGoodsAttrId(Integer goodsAttrId) {
			this.goodsAttrId = goodsAttrId;
		}

		public String getGoodsAttr() {
			return goodsAttr;
		}

		public void setGoodsAttr(String goodsAttr) {
			this.goodsAttr = goodsAttr;
		}

		public Integer getOutputId() {
			return outputId;
		}

		public void setOutputId(Integer outputId) {
			this.outputId = outputId;
		}
}
